package org.edu.modules.stu.jis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.edu.common.base.BaseEntity;
import java.sql.Date;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * entity-预约与学生关联表
 */
@TableName("ve_stu_yystu")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="预约与学生关联表对象", description="ve_stu_yystu")
public class VeStuYystu extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "")
        private Integer stuId;

    @TableField
    @ApiModelProperty(value = "")
        private Integer yyId;

    @TableField
    @ApiModelProperty(value = "预约开始时间")
        @JsonFormat(timezone="GMT+8",locale="zh",  pattern="yyyy-MM-dd")
        private Date yystartTime;

    @TableField
    @ApiModelProperty(value = "预约结束时间")
        @JsonFormat(timezone="GMT+8",locale="zh",  pattern="yyyy-MM-dd")
        private Date yyendTime;

    @TableField
    @ApiModelProperty(value = "")
    @Length(max = 255)
        private String yyReason;

    @TableField
    @ApiModelProperty(value = "提交的预约是否审核成功(1通过，0不通过，2.未审核)")
        private Integer yyauthStatus;

    @TableField
    @ApiModelProperty(value = "审核不成果的原因")
    @Length(max = 255)
        private String yyauthReason;

    @TableField
    @ApiModelProperty(value = "常规时间预约")
        @JsonFormat(timezone="GMT+8",locale="zh",  pattern="yyyy-MM-dd")
        private Date currentTime;
}
